
<div class="col-sm-10">
    <ol class="breadcrumb">
        <li class="active">项目管理
        </li>
        <li class="active">项目列表
        </li>
    </ol>
    <div class="panel panel-default">

        <div class="panel-heading">
            增加项目
        </div>
        <div class="panel-body">
            <div class=" input-form">
                <!--
                <form action="/admin/product/doproductadd" method="post" enctype="multipart/form-data">
                    <ul>
                        <li>在原服务器中的相对路径: <input type="text" name="title" /></li>
                        <li>  文 &nbsp 件 &nbsp 本 &nbsp 体 &nbsp : &nbsp&nbsp &nbsp &nbsp &nbsp &nbsp &nbsp <input type="file" name="pic"/></li>
                        <li>
                            项目描述:
                            <textarea name="description" id="" cols="60" rows="8"></textarea>
                        </li>

                        <li>
                            <br/>
                            <button type="submit" class="btn btn-default">提交</button>
                        </li>

                    </ul>


                </form>
                -->

                <?php
                use yii\widgets\ActiveForm;
                use yii\helpers\Html;
                $form = ActiveForm::begin([
                    'options'=>['enctype'=>'multipart/form-data','class' => 'form-horizontal'],
                    'fieldConfig' => [
                        'template' => "{label}\n<div class=\"col-lg-5\">{input}</div>\n<div class=\"col-lg-5\">{error}</div>",
                        'labelOptions' => ['class' => 'col-lg-2 control-label'],
                    ],
                ]); ?>

                <?= $form->field($model, 'name')->textInput(['maxlength' => 255,'placeholder'=>'请输入项目名称'])->label('名称') ?>

                <?= $form->field($model, 'description')->textInput(['maxlength' => 255,'placeholder'=>'请输入项目描述'])->label('描述') ?>
                <?= $form->field($model, 'note')->textInput(['maxlength' => 255,'placeholder'=>'请输入项目备注'])->label('备注') ?>
            </div>

            <div class="form-group" style="margin-left: 50px;">
                <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>
            </div>

            <?php ActiveForm::end(); ?>
            </div>
        </div>


    </div>

</div>
